{% extends "base.html" %}
{% block title %}搜索-{{ key }}{% endblock %}
{% block content %}
    <div class="row" style="padding:0px 7px">
        {% for item in movies %}
            <div class="col-md-2 col-sm-6 col-xs-6 movie-item-out">
                <div class="movie-item">
                    <a style="position:relative;display:block;" title="{{ item.moviename }}" target="_blank" href="{% url 'detail' item.id %}">
                        <img class="indexhot" title="{{ item.moviename }}" alt="{{ item.moviename }}" src="{{ item.picurl }}">
                        <button class="hdtag">{{ item.language }}</button>
                    </a>
                    <div class="meta">
                        <div style="width:100%;overflow:hidden;height:20px;"><a target="_blank" title="{{ item.moviename }}" class="movie-name" href="{% url 'detail' item.id %}">{{ item.moviename }}</a></div>
                        <em>添加时间：<strong><span style="color:#FF0000;">{{ item.createtime|date:"Y-m-d" }}</span></strong></em>
                    </div>
                </div>
		    </div>
        {% empty %}
            <p>没有相关记录！</p>
        {% endfor %}
    </div>
{% endblock %}